<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
include_once("../../config.inc.php");

$_LangPath = "virtualhost";
$strTemplatePath = __Admintemplate_Path."/VirtualHost/";
include(__Admin_Path."/logincheck.php");
include(__Language_Path."/selectlanguage_admin.php");
include(__Modules_Path."/SQLUtility.lib.php");
include(__Modules_Path."/Utility.lib.php");
include(__Modules_Path."/Member.lib.php");
include(__Modules_Path."/VirtualHost.lib.php");

$arrPower = CheckUsePower("virtualhost");
if($arrPower === false)ErrMsgOutputHTML("Error", "", 1);

$_stMemGroup = str_replace("#", ",", $arrPower[1]);
if($_stMemGroup == "")$_stMemGroup = "0";

$SessionSQL = "bet_VirtualHostSQLA";
switch($_data["op"]){
	case "Add":							//新增表單
		include("Add.php");
		break;

	case "Insert":						//新增資料
		include("Insert.php");
		break;

	case "Edit":						//編輯表單
		include("Edit.php");
		break;

	case "Update":						//更改資料
		include("Update.php");
		break;

	case "SearchUsedDaomin":			//查詢是否使用過 Domain
		include("SearchUsedDaomin.php");
		break;

	//case "Search":					//搜尋表單
		//include("Search.php");
		//break;

	case "List":						//清單
		include("List.php");
		break;

	default:							//清單
		$_SESSION[$SessionSQL] = "";
		include("List.php");
		break;
}
?>